package com.cskaoyan.app.advice;

import com.cskaoyan.app.bean.common.BaseRespVo;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class NumberFormatAdvice {

    @ExceptionHandler(NumberFormatException.class)
    public Object paramInvalidResolve() {
        return BaseRespVo.invalidParameter("请输入纯数字！！！");
    }
}
